package com.hero.take.entity.result;

public enum ResponseCode {
    /**
     * 通用错误
     */
    COMMON_ERROR("系统异常",500),
    SUCCESS("成功",200),
    NO_LOGIN("登陆过期，请重新登陆",403),
    UN_AUTH("权限不足",413),
    PARAM_ERROR("参数不正确",301),
    PARAM_IS_NULL("参数为空",302),
    DATA_NOT_EXIST("数据不存在",404),
    DATA_EXIST("数据已存在",101),
    CONFIG_TYPE_NOT_EXIST("配置类型不存在",102)
    ;

    private String message;
    private Integer code;
    ResponseCode(String message,Integer code){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
